package com.gwcm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gwcm.model.dto.category.CategoryQueryRequest;
import com.gwcm.model.entity.Category;
import com.gwcm.model.vo.CategoryVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 15375
* @description 针对表【category】的数据库操作Mapper
* @createDate 2023-03-11 15:41:21
* @Entity com.gwcm.model.entity.Category
*/
public interface CategoryMapper extends BaseMapper<Category> {

    IPage<CategoryVo> selectCategoryToPage(IPage<Category> page, @Param("categoryQueryRequest") CategoryQueryRequest categoryQueryRequest);

    Category selectByProductId(@Param("productId") Long productId);
}




